package com.itheima.day02.ZuoYe.ZuoYe_4;

public class test {
    public static void main(String[] args) {
        Breeder b = new Breeder();
        b.breed(new Dog());
        b.breed(new Frog());
        b.breed(new Sheep());
        Breeder.Swim(new Dog());
        Breeder.Swim(new Frog());
//        Swim((new Sheep()); 羊没法参加比赛
    }
}
